package com.demo.websocket.client;

import com.demo.websocket.vo.AIAnalysisResponse;
import com.demo.websocket.vo.SymptomRequest;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@org.springframework.cloud.openfeign.FeignClient(name = "python-ai-service", url = "${python.api.base-url:http://localhost:5000}")
public interface FeignClient {
    @PostMapping("/triage")
    AIAnalysisResponse analyzeSymptoms(@RequestBody SymptomRequest request);


    @GetMapping("/health")
    Map<String, Object> healthCheck();

}
